package com.exist.simple.demo.controller;

import com.exist.simple.demo.service.ClassInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/hello")
public class HelloController {

    private static Logger logger = LoggerFactory.getLogger(HelloController.class);

    @Autowired
    ClassInfoService classInfoService;

    @GetMapping("")
    public String helloInfo() {
        logger.info("/helloInfo start");
        String hello = "hello world";
        logger.info("/helloInfo end");
        return hello;
    }

}
